package DFdwer;

import java.util.ArrayList;
import java.util.Iterator;

public class Dfdsfasdfasdfa {
	public static void main(String[] args){
		ArrayList<String> al=new ArrayList<String>();
		for(int i=0;i<10;i++){
			al.add(String.valueOf(i));
		}
		Iterator<String> it=al.iterator();
		while(it.hasNext()){
			System.out.println(it.next());
		}
//		MyTask t1 = new MyTask("1");
//		MyTask t2 = new MyTask("s");
//		t1.start();
//		t2.start();
//		try{
//		   t1.join();
//		   t2.join();
//		   if(t1.getIsEnd()&&t2.getIsEnd()){
//			   System.out.println("zzzz");
//		   }
//		}catch(InterruptedException e)   {
//		}
	}
}
class MyTask extends Thread {
    private String s=null;
    private boolean isEnd=false;
    public MyTask(String s){
    	this.s=s;
    }
	public void run() {
		System.out.println(Integer.parseInt(s));
        System.out.println(s);
		isEnd=true;
	}
	public boolean getIsEnd(){
		return isEnd;
	}	
}
